#import "GraciousYonderCell.h"


@implementation GraciousYonderCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setWonder:(GraciousYonderModel *)wonder {
	_wonder = wonder;

	//: 配置cell的UI

	if (wonder.wispFlutterXenon.count > 0) {
		[self.onwardNirvanaImageView sd_setImageWithURL:[NSURL URLWithString:wonder.wispFlutterXenon[0]] placeholderImage:nil];
	}

}
//: _wondermentButton 的点击事件
- (void)action_0 {}

- (UIButton *)wondermentButton {
	if (!_wondermentButton) {
	
        _wondermentButton = [[UIButton alloc] init];
        _wondermentButton.frame = CGRectMake(37, 48, 33, 183);
        UIImage *leapfrogCactusCable = [UIImage imageNamed:@"images/icon_0.png"];
        if (leapfrogCactusCable) {
	        [_wondermentButton setImage:leapfrogCactusCable forState:UIControlStateNormal];
        }
        [_wondermentButton setTitle:@"button_0" forState:UIControlStateNormal];
        [_wondermentButton setTitle:@"button_selected_0" forState:UIControlStateSelected];
        [_wondermentButton setTitleColor:[UIColor colorWithRed:222/255.0 green:97/255.0 blue:97/255.0 alpha:0.8] forState:UIControlStateNormal];
        [_wondermentButton setTitleColor:[UIColor colorWithRed:229/255.0 green:41/255.0 blue:150/255.0 alpha:0.6] forState:UIControlStateSelected];
        [_wondermentButton addTarget:self action:@selector(action_0) forControlEvents:UIControlEventTouchUpInside];
	}
	return _wondermentButton;
}

//: charisma 的点击事件
- (void)action_1 {}

- (UITextView *)hammerTextView {
	if (!_hammerTextView) {
	
        _hammerTextView = [UITextView new];
        _hammerTextView.frame = CGRectMake(20, 37, 168, 120);
	}
	return _hammerTextView;
}

//: 设置lullaby的圆角
- (void)wandererGlimmerEmbark:(UIImageView *)amberElevateDoodle grasp:(CGFloat)yard {
	amberElevateDoodle.layer.cornerRadius = yard;
	amberElevateDoodle.layer.masksToBounds = YES;
}

//: vortex 的点击事件
- (void)action_7 {}

- (void)flowQuixoticConfigViews {
	//: 描述_0
	[self.contentView addSubview:self.wondermentButton];


    //: 描述_1
    UIButton *charisma = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *balance = [UIImage imageNamed:@"images/icon_1.png"];
    if (balance) {
	    [charisma setImage:balance forState:UIControlStateNormal];
    }
    [charisma setTitle:@"button_1" forState:UIControlStateNormal];
    [charisma setTitle:@"button_selected_1" forState:UIControlStateSelected];
    [charisma setTitleColor:[UIColor colorWithRed:174/255.0 green:105/255.0 blue:82/255.0 alpha:0.9] forState:UIControlStateNormal];
    [charisma setTitleColor:[UIColor colorWithRed:165/255.0 green:179/255.0 blue:55/255.0 alpha:0.7] forState:UIControlStateSelected];
    [charisma addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
    self.dreamThistleEnigmaBtn = charisma;
    [self.contentView addSubview:charisma];
	[self.dreamThistleEnigmaBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(88);
		make.height.mas_equalTo(96);
		make.bottom.equalTo(@(12));
	}];

	//: 描述_2
	[self.contentView addSubview:self.hammerTextView];


    //: 描述_3
    UIImageView *lullaby = [UIImageView new];
    lullaby.contentMode = UIViewContentModeScaleAspectFill;
    lullaby.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self wandererGlimmerEmbark:lullaby grasp:5];
    UIImage *amberCourageous = [UIImage imageNamed:@"images/image_3.png"];
    if (amberCourageous) {
	    lullaby.image = amberCourageous;
    }
    self.onwardNirvanaImageView = lullaby;
    [self.contentView addSubview:lullaby];
	[self.onwardNirvanaImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(142);
		make.height.mas_equalTo(51);
	}];


    //: 描述_4
    self.symphonyTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:self.symphonyTextField];
	[self.symphonyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(58);
		make.height.mas_equalTo(161);
		make.bottom.equalTo(@(15));
	}];


    //: 描述_5
    self.jellyYonderTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    self.jellyYonderTextField.size = CGSizeMake(34, 100);
    self.jellyYonderTextField.left = 30;
    self.jellyYonderTextField.top = 40;
    [self.contentView addSubview:self.jellyYonderTextField];


    //: 描述_6
    self.alchemyGratitudeSuspicionView = [[UIView alloc] init];
    self.alchemyGratitudeSuspicionView.size = CGSizeMake(162, 160);
    self.alchemyGratitudeSuspicionView.left = 9;
    self.alchemyGratitudeSuspicionView.top = 16;
    [self.contentView addSubview:self.alchemyGratitudeSuspicionView];


    //: 描述_7
    UIButton *vortex = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *glistenYearling = [UIImage imageNamed:@"images/icon_7.png"];
    if (glistenYearling) {
	    [vortex setImage:glistenYearling forState:UIControlStateNormal];
    }
    [vortex setTitle:@"button_7" forState:UIControlStateNormal];
    [vortex setTitle:@"button_selected_7" forState:UIControlStateSelected];
    [vortex setTitleColor:[UIColor colorWithRed:183/255.0 green:38/255.0 blue:241/255.0 alpha:0.5] forState:UIControlStateNormal];
    [vortex setTitleColor:[UIColor colorWithRed:117/255.0 green:108/255.0 blue:234/255.0 alpha:0.7] forState:UIControlStateSelected];
    [vortex addTarget:self action:@selector(action_7) forControlEvents:UIControlEventTouchUpInside];
    self.pirateButton = vortex;
    [self.contentView addSubview:vortex];
	[self.pirateButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(152);
		make.height.mas_equalTo(191);
		make.top.equalTo(@(22));
		make.bottom.equalTo(@(22));
	}];
}


@end